//
//  AUHomeModule_NetwrokManager.swift
//  Alamofire
//
//  Created by Miss_Special on 2018/4/28.
//

import UIKit

import AwesomeUNetworkModule

class AUHomeModule_NetwrokManager {
    
    static let sharedManager = AUHomeModule_NetwrokManager()
    
    private init() { }
    
    func request(_ type: RequestType,
                 urlString: String,
                 parameters: [String: String]? = nil,
                 showHud: Bool = false,
                 finishedCallBack: ((_ result: [String: Any]) -> ())?) {
        AUNetworkModule.requestData(type, urlString: urlString) { (result) in
            guard let resultDict = result as? [String: Any] else {
                return
            }
            finishedCallBack?(resultDict)
        }
    }
}
